<script>
	export default {
		globalData: {
			statusBarHeight: '',  
			navHeight: '',  
		}, 
		onLaunch: function() {
			let that = this;
			let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
			uni.getSystemInfo({  
				success(res) {
					let statusBarHeight = res.statusBarHeight;
					let navHeight = menuButtonInfo.height + (menuButtonInfo.top - statusBarHeight) * 2;
					that.globalData.statusBarHeight = statusBarHeight;
					that.globalData.navHeight = navHeight;
				}
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import 'uview-ui/theme.scss';
	@import "uview-ui/index.scss";
</style>
 